package ch2;

//榨汁机
public class JuiceMaker2 {
	String brand;
	String color;
	int watt;// 功率

	public void show() {
		System.out.println("这个榨汁机是" + brand + "的，颜色是" + color + ",功率" + watt + "瓦特");
	}

	public String makeJuice(String fruit) {
		System.out.println(brand + "榨汁机到头开始转动。。。");
		String f = fruit + "汁";
		return f;
	}

	public String makeJuice2(String fruit1, String fruit2) {
		System.out.println(fruit1 + "和" + fruit2 + "放入了榨汁机。。\n刀头开始转动。。。。");
		String f = fruit1 + fruit2 + "汁";
		return f;
	}
}
